package com.zhl.thisdemo;

public class Test {
    public static void main(String[] args) {
        //目标：认识 this 关键字，再掌握This 的应用场景
        Student s1 = new Student();
        System.out.println(s1);
        s1.PrintThis();

        System.out.println("~~~~~~~~~~~~~~~~~");

        Student s2 = new Student();
        System.out.println(s2);
        s2.PrintThis();


        Student s3 = new Student();
        s3.score = 561;//考的分数
        s3.printPass(340);//分数线
    }
}
// 输出结果：
//com.zhl.thisdemo.Student@1b6d3586
//com.zhl.thisdemo.Student@1b6d3586
//~~~~~~~~~~~~~~~~~
//com.zhl.thisdemo.Student@4554617c
//com.zhl.thisdemo.Student@4554617c